package com.ruoyi.mtg.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

@ApiModel("CardJson")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mtg_card_data")
public class CardData {

    @TableId(type = IdType.AUTO)
    Long id;

    String name;
    String uuid;
    String type;
    String colors;
    String manaCost;
    BigDecimal convertedManaCost;
    String printings;
    String text;
    String scryfallOracleId;
    String nameCn;
    String typeCn;
    String textCn;
    String power;
    String toughness;

    @TableField(exist = false)
    List<CardData> others;
}
